/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bigo.data;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.io.Writable;

/**
 *
 * @author songliu
 */
public class TwoMatrices implements Writable{
    public Matrix matrixA = new Matrix(), matrixB = new Matrix();

    public TwoMatrices(Matrix matrixA, Matrix matrixB) {
        this.matrixA = matrixA;
        this.matrixB = matrixB;
    }

    public TwoMatrices() {
    }

    public void write(DataOutput out) throws IOException {
        matrixA.write(out);
        matrixB.write(out);
    }

    public void readFields(DataInput in) throws IOException {
        matrixA.readFields(in);
        matrixB.readFields(in);
    }
    
}
